import { BaseResultType } from '#/request'
import uniRequest from '@/request'
import { dealResult } from './dealResult'

export const getUserInfo = async (param: any): Promise<BaseResultType<any> | null> => {
  const [result, err] = await uniRequest.post('11111111', param)
  return Promise.resolve(dealResult(err, result))
}

export const getDetailApi = async (param: any): Promise<BaseResultType<any> | null> => {
  const [result, err] = await uniRequest.get('/manager/exData/getInfoByType', param)
  return Promise.resolve(dealResult(err, result))
}


export const getexDataPagesApi = async (param: any): Promise<BaseResultType<any> | null> => {
  const [result, err] = await uniRequest.get('/manager/exData/page', param)
  return Promise.resolve(dealResult(err, result))
}

